/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FestiCanne.java
 *
 * Created on 7 févr. 2011, 10:22:40
 */
package festicannes;

import connexionOracle.Requete;
import controleur.TableModel;
import controleur.TableModelH;
import hebergement.LieuHebergement;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;
import javax.swing.JOptionPane;
import javax.swing.table.TableCellEditor;
import projection.Projection;

/**
 *
 * @author tommy
 */
public class FestiCannes extends javax.swing.JFrame {

    TableModel tm = new TableModel();
    TableModelH tmh = new TableModelH();

    /** Creates new form FestiCanne */
    public FestiCannes() {
        initComponents();

        /*JComboBox listVip = new JComboBox();
        TableCellEditor nameColumn = new DefaultCellEditor(listVip);
        jTable1.getColumnModel().getColumn(5).setCellEditor(nameColumn);*/

        /*JComboBox listVipH = new JComboBox();
        TableCellEditor nameColumn1 = new DefaultCellEditor(listVipH);
        jTable2.getColumnModel().getColumn(5).setCellEditor(nameColumn1);*/
        
        Requete.createConnexion();
        try {
            ResultSet rs = Requete.initHeberg();
            
            while (rs.next()) {

                LieuHebergement e = new LieuHebergement(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getInt(4), rs.getInt(5), rs.getInt(6),rs.getString(7));
                System.out.println(e.toString());
                tmh.initModel(e);

            }
            tmh.fireTableDataChanged();
           /* ResultSet rs1 = Requete.initProj();
            while (rs1.next()) {
                Projection p = new Projection(rs1.getInt(1), rs1.getString(4).toString(), rs1.getString(2), rs1.getInt(3));
                p.setDureeProjection(rs1.getInt(WIDTH))
                p.setVip(rs1.getString(5));
                tm.initModel(p);
            }
            tm.fireTableDataChanged();*/
            System.out.println("Model initialised");
        } catch (SQLException sqle) {
            JOptionPane.showMessageDialog(new JOptionPane(), ": Impossible de se connecter a la base de donnée...");
            sqle.printStackTrace();
        } catch (NullPointerException npe) {
            System.out.println(npe.toString());
        }
        
        


    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel3 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jButton3 = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPane1StateChanged(evt);
            }
        });

        jPanel3.setPreferredSize(new java.awt.Dimension(1000, 746));
        jPanel3.setLayout(null);
        jPanel3.add(jLabel8);
        jLabel8.setBounds(819, 135, 0, 0);

        jButton3.setText("Ajouter");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });
        jPanel3.add(jButton3);
        jButton3.setBounds(68, 712, 69, 23);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Contenu de la BD"));
        jPanel4.setName("Contenu de la base de donnée:"); // NOI18N

        jTable1.setModel(tm);
        jTable1.setColumnSelectionAllowed(true);
        jScrollPane2.setViewportView(jTable1);
        jTable1.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);

        jButton4.setText("Ajouter");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jButton5.setText("Modifier");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton6.setText("Supprimer");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 773, Short.MAX_VALUE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jButton4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton6)))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton4)
                    .addComponent(jButton5)
                    .addComponent(jButton6))
                .addContainerGap())
        );

        jPanel3.add(jPanel4);
        jPanel4.setBounds(10, 10, 809, 440);

        jTabbedPane1.addTab("Projection", jPanel3);

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("Contenu de la BD"));

        jTable2.setModel(tmh
        );
        jScrollPane1.setViewportView(jTable2);

        jButton1.setText("Affecter");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Ajouter Hotel");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton9.setText("Supprimer");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton9))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 764, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2)
                    .addComponent(jButton9))
                .addGap(27, 27, 27))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(30, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Hebergement", jPanel2);

        jButton7.setText("Enregistrer");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jButton8.setText("Quitter");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 845, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jButton7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton8)
                        .addGap(29, 29, 29))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton8)
                    .addComponent(jButton7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 507, Short.MAX_VALUE))
        );

        jMenu1.setText("File");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        final AjoutFilm af = new AjoutFilm();
        af.setVisible(true);

        af.addWindowListener(new WindowListener() {

            @Override
            public void windowOpened(WindowEvent e) {
            }

            @Override
            public void windowClosing(WindowEvent e) {
            }

            @Override
            public void windowClosed(WindowEvent e) {
                try {
                    Projection p = af.getProjection();
                    try {
                        p.setDureeProjection(Integer.parseInt(Requete.getFilmInfos(p.getFilm(), 1).toString()));
                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    tm.addIt(p);
                    tm.fireTableDataChanged();
                } catch (NullPointerException npe) {
                }

            }

            @Override
            public void windowIconified(WindowEvent e) {
            }

            @Override
            public void windowDeiconified(WindowEvent e) {
            }

            @Override
            public void windowActivated(WindowEvent e) {
            }

            @Override
            public void windowDeactivated(WindowEvent e) {
            }
        });
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        int rep = JOptionPane.showConfirmDialog(new JOptionPane(), "Etes vous sur de vouloir supprimer les projections sélectionnées?");
        if (rep == JOptionPane.YES_OPTION) {
            int[] id = null;
            try {
                id = jTable1.getSelectedRows();
                for (int o = id.length - 1; o >= 0; o--) {
                    tm.supprimerLigne(id[o]);
                }
                tm.fireTableDataChanged();
            } catch (NullPointerException npe) {
                String message = npe.getMessage();
            }
            id = null;
        }
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        if (tm.ajout || tm.modif || tm.suppr) {
            jButton7ActionPerformed(evt);
            this.dispose();
        } else {
            this.dispose();
        }
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        int rep = JOptionPane.showConfirmDialog(new JOptionPane(), "Etes vous sur de vouloir soumettre les changements à la base de donnée?");
        if (rep == JOptionPane.YES_OPTION) {
            if (tm.ajout) {
                for (Projection ea : TableModel.listeAjoutee) {
                    try {
                        Requete.addProj(ea);
                        System.out.println("Added to BD: " + ea.toString());

                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
                tm.ajout = false;
                TableModel.listeAjoutee.clear();
            }
            if (tmh.ajout) {
                for (LieuHebergement ea : TableModelH.listeAjoutee) {
                    try {
                        Requete.addHeb(ea);
                        System.out.println("Added to BD: " + ea.toString());

                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
                tmh.ajout = false;
                TableModelH.listeAjoutee.clear();
            }
            if (tm.modif) {
                for (Projection eg : TableModel.listeModifiee) {
                    try {
                        Requete.updateEmp(eg);
                        System.out.println("Modified from BD: " + eg.toString());

                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
                tm.modif = false;
                TableModel.listeModifiee.clear();
            }
            if (tmh.modif) {
                for (LieuHebergement eg : TableModelH.listeModifiee) {
                    try {
                        Requete.updateHeb(eg);
                        System.out.println("Modified from BD: " + eg.toString());

                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
                tmh.modif = false;
                TableModelH.listeModifiee.clear();
            }
            if (tm.suppr) {
                for (Projection ef : TableModel.listeSupprimee) {
                    try {
                        Requete.deleteEmp(ef);
                        System.out.println("Deleted from BD: " + ef.toString());

                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
                tm.suppr = false;
                TableModel.listeSupprimee.clear();
            }
            if (tmh.suppr) {
                for (LieuHebergement ef : TableModelH.listeSupprimee) {
                    try {
                        Requete.deleteHeb(ef);
                        System.out.println("Deleted from BD: " + ef.toString());

                    } catch (SQLException ex) {
                        Logger.getLogger(FestiCannes.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
                tmh.suppr = false;
                TableModelH.listeSupprimee.clear();
            }
        }

    }//GEN-LAST:event_jButton7ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        JOptionPane.showMessageDialog(new JOptionPane(), "Modifiez directement les valeur dans la table.");
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        final Affectation a = new Affectation();
        a.setVisible(true);
        a.addWindowListener(new WindowListener() {

            @Override
            public void windowOpened(WindowEvent e) {
            }

            @Override
            public void windowClosing(WindowEvent e) {
            }

            @Override
            public void windowClosed(WindowEvent e) {
                if (a.getHeberg() != null) {
                   String r = "";
                    Object[] o = a.getHeberg();
                    for (Object s : o) {
                        r = r.concat(s.toString()+" ");
                    }
                    tmh.setValueAt(r, jTable2.getSelectedRow(), 5);
                    tmh.fireTableDataChanged();
                    
                }
            }

            @Override
            public void windowIconified(WindowEvent e) {
            }

            @Override
            public void windowDeiconified(WindowEvent e) {
            }

            @Override
            public void windowActivated(WindowEvent e) {
            }

            @Override
            public void windowDeactivated(WindowEvent e) {
            }
        });
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        final AjoutHotel ajh = new AjoutHotel();
        ajh.setVisible(true);
        ajh.addWindowListener(new WindowListener() {

            @Override
            public void windowOpened(WindowEvent e) {
            }

            @Override
            public void windowClosing(WindowEvent e) {
            }

            @Override
            public void windowClosed(WindowEvent e) {
                if (ajh.getHebergement() != null) {
                    LieuHebergement lh = ajh.getHebergement();
                    tmh.addIt(lh);
                    tmh.fireTableDataChanged();
                }
            }

            @Override
            public void windowIconified(WindowEvent e) {
            }

            @Override
            public void windowDeiconified(WindowEvent e) {
            }

            @Override
            public void windowActivated(WindowEvent e) {
            }

            @Override
            public void windowDeactivated(WindowEvent e) {
            }
        });
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
    }//GEN-LAST:event_jTabbedPane1StateChanged

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        int rep = JOptionPane.showConfirmDialog(new JOptionPane(), "Etes vous sur de vouloir supprimer les Hebergements sélectionnées?");
        if (rep == JOptionPane.YES_OPTION) {
            int[] id = null;
            try {
                id = jTable2.getSelectedRows();
                for (int o = id.length - 1; o >= 0; o--) {
                    tmh.supprimerLigne(id[o]);
                }
                tmh.fireTableDataChanged();
            } catch (NullPointerException npe) {
                String message = npe.getMessage();
            }
            id = null;
        }
    }//GEN-LAST:event_jButton9ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new FestiCannes().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    // End of variables declaration//GEN-END:variables
}
